home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / blkspell / brlxdlgc.cpp < prev    next >
C/C++ Source or Header  |  1998-09-22  |  2KB  |  85 lines

  1. //----------------------------------------------------------------------------
  2. //  Project Borl_ex
  3. //  BlockTeq Software
  4. //  Copyright ⌐ 1998. All Rights Reserved.
  5. //
  6. //  SUBSYSTEM:    Borl_ex Application
  7. //  FILE:         brlxdlgc.cpp
  8. //  AUTHOR:       D.R.Block
  9. //
  10. //  OVERVIEW
  11. //  ~~~~~~~~
  12. //  Source file for implementation of TBorl_exDlgClient (TDialog).
  13. //
  14. //----------------------------------------------------------------------------
  15.  
  16. #include <owl/pch.h>
  17.  
  18. #include "borlxapp.h"
  19. #include "brlxdlgc.h"
  20. #include "btdict.h"
  21.  
  22.  
  23. //
  24. // Build a response table for all messages/commands handled by the application.
  25. //
  26. DEFINE_RESPONSE_TABLE1(TBorl_exDlgClient, TDialog)
  27. //{{TBorl_exDlgClientRSP_TBL_BEGIN}}
  28.   EV_BN_CLICKED(IDOK, BNClickedSpellCheck),
  29.   EV_BN_CLICKED(IDC_BUTTON1, BNClickedShowLicense),
  30. //{{TBorl_exDlgClientRSP_TBL_END}}
  31. END_RESPONSE_TABLE;
  32.  
  33.  
  34. //{{TBorl_exDlgClient Implementation}}
  35.  
  36.  
  37. //--------------------------------------------------------
  38. // TBorl_exDlgClient
  39. // ~~~~~~~~~~
  40. // Construction/Destruction handling.
  41. //
  42. TBorl_exDlgClient::TBorl_exDlgClient(TWindow* parent, TResId resId, TModule* module)
  43. :
  44.   TDialog(parent, resId, module)
  45. {
  46. //{{TBorl_exDlgClientXFER_USE}}
  47.   pEdit = new TEdit(this, IDC_EDIT1, -1);
  48.  
  49. //{{TBorl_exDlgClientXFER_USE_END}}
  50.  
  51.   // INSERT>> Your constructor code here.
  52. }
  53.  
  54.  
  55. TBorl_exDlgClient::~TBorl_exDlgClient()
  56. {
  57.   Destroy();
  58.  
  59.   // INSERT>> Your destructor code here.
  60. }
  61.  
  62. void TBorl_exDlgClient::BNClickedSpellCheck()
  63. {
  64.   // INSERT>> Your code here.
  65.   SpellCheck(pEdit->HWindow);
  66. }
  67.  
  68.  
  69. void TBorl_exDlgClient::SetupWindow()
  70. {
  71.   TDialog::SetupWindow();
  72.  
  73.   // INSERT>> Your code here.
  74.     char *spchktst = "Ths wuold be a reely gud plice fer chckng yer spelng.";
  75.     pEdit->SetText(spchktst);
  76. }
  77.  
  78.  
  79. void TBorl_exDlgClient::BNClickedShowLicense()
  80. {
  81.   // INSERT>> Your code here.
  82.     ShowLicense();
  83. }
  84.  
  85.